﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TheClerk.Forms
{
    /// <summary>
    /// Value-types (MIME-types and their handlers)
    /// </summary>
    internal class ContentType
    {
        private System.Collections.ArrayList _name;
        public string Name
        {
            get
            {
                return ((_name.ToArray())[0] as string);
            }
            private set
            {
                _name.Add(value);
            }
        }
        public bool isInstance(string value)
        {
            return (_name.IndexOf(value) == -1 ? false : true);
        }
        
        // TODO Add type handler support
    }
}
